package com.lg.java.design;


/**
 * 枚举实现
 * 枚举就是常量
 *
 *
 */
public enum  Hungery2 {
    INSTANCE1,INSTANCE2;
    private Base base = null;
    private Hungery2(){
        base = new Base();
    }

    public Base getInstance(){
        return this.base;
    }

}
